package com.can.Service;

import com.can.domain.po.Game;
import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;

@LocalTCC
public interface EsTccService {
    @TwoPhaseBusinessAction(name = "esPrepare", commitMethod = "esCommit", rollbackMethod = "esCancel")
    boolean esPrepare(@BusinessActionContextParameter(paramName = "game") Game game,BusinessActionContext context);
    boolean esCommit(BusinessActionContext context);
    boolean esCancel(BusinessActionContext context);
}